//
//  LYQRightArrowsTableViewCell.m
//  ZCProject
//
//  Created by 崔明燃 on 16/11/21.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQRightArrowsTableViewCell.h"

@implementation LYQRightArrowsTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        [self.contentView addSubview:self.titleLabel];
        [self.contentView addSubview:self.arrowsImg];
        
        [self subViewsLayout];
    }
    
    return self;
}

#pragma mark - layout subViews
- (void)subViewsLayout {
    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.left.equalTo(self.contentView.mas_left).offset(10);
        make.width.equalTo(@60);
        make.height.equalTo(@30);
    }];
    
    
    [_arrowsImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.right.equalTo(self.contentView.mas_right).offset(-10);
        make.width.equalTo(@7);
        make.height.equalTo(@10);
    }];
}


#pragma mark - lazy load
- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.text = @"性别";
        _titleLabel.font = kFont(15);
    }
    
    return _titleLabel;
}

- (UIImageView *)arrowsImg {
    if (!_arrowsImg) {
        _arrowsImg = [[UIImageView alloc] init];
//        _arrowsImg.backgroundColor = [UIColor redColor];
        _arrowsImg.image = [UIImage imageNamed:@"morejticon"];
    }
    
    return _arrowsImg;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
